//
//  BattleDestroyDetails.h
//  SpaceStorm
//
//  Created by  mmj on 13-8-8.
//  歼灭胜利 详细描述
//

#import "cocos2d.h"
#import "SlowBlood2Layer.h"

@interface BattleDestroyDetailsInfoItem : CCNode
{
    //文本
    CCLabelTTF* labelName;   //名称
    CCLabelTTF* labelreducDesc;   //减免率
    SlowBlood2Layer* _blood;      //血槽
    CCLabelTTF* labelreducPercent;  //减免百分比
    
}

-(void) updateDestroyDetailsInfo:(NSString *) labelName1 bloodPercent1:(int) bloodPercent1 reducPercent1:(int)reducPercent1 reducIndex:(int)reducIndex;

@end


@interface  BattleDestroyDetailsGoodsItem  : CCNode
{
    int goodsType;      //物品类型
    CCSprite* goodsBg;      //物品的背景
    
}

-(void) updateDestroyWinGoodsInfo:(int) goodsType;



@end



@interface BattleDestroyDetails : CCLayer
{
    CGSize size;
    CCMenu*		menu;
    CCArray* _hurtList;   //损失列表
    CCArray* _protectList; //防御列表
    CCArray* _goodsList;   //战利品列表
    //用户文本
    CCLabelTTF* labelArmNeed;
    CCLabelTTF* labelPower;
    
    CCLabelTTF* labelHurtDesc;  //伤害描述
    CCLabelTTF* labelProtectDesc; //防御描述
    
    
}

#pragma mark -
#pragma mark 战斗结算详情的方法
+(CCScene *) scene;
-(void) initBackGround;
-(void) initHead;
-(void) initMenu;
-(void) initInfo:(CCArray*) hurtList protectList:(CCArray*) protectList goodsList:(CCArray*)goodsList;
-(void) initTopDecorate;

-(void) updateLabelInfo:(int) armNeed powerNum:(int) powerNum;
-(void) updateHurtDescInfo:(NSString*) desc1 desc2:(NSString*) desc2;
-(void) updateProtectDescInfo:(NSString*) desc1 desc2:(NSString*) desc2;

#pragma mark -
#pragma mark 战斗结算详情方法处理
-(void) onPowerButton:(id)sender;
-(void) onSureButton:(id)sender;
-(void) onLeftArrowButton:(id)sender;
-(void) onRightArrowButton:(id)sender;


#pragma mark -
#pragma mark 战斗结算详情的属性
@property (readwrite) int armNeed;    //军需
@property (readwrite) int powerNum;   //战功
@property (readwrite, retain) CCArray* hurtList;         //伤害列表
@property (readwrite, retain) CCArray* protectList;       //防御列表  
@property (readwrite, retain) CCArray* goodsList;        //战利品列表

@end
